3.23 \(\int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^{5/2}}{\sqrt {c-c \sin (e+f x)}} \, dx\)

Optimal. Leaf size=45 \[ \frac {\cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{4 a f \sqrt {c-c \sin (e+f x)}} \]

[Out]

1/4*cos(f*x+e)*(a+a*sin(f*x+e))^(7/2)/a/f/(c-c*sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.31, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {2841, 2738} \[ \frac {\cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{4 a f \sqrt {c-c \sin (e+f x)}} \]

Antiderivative was successfully verified.

[In]

Int[(Cos[e + f*x]^2*(a + a*Sin[e + f*x])^(5/2))/Sqrt[c - c*Sin[e + f*x]],x]

[Out]

(Cos[e + f*x]*(a + a*Sin[e + f*x])^(7/2))/(4*a*f*Sqrt[c - c*Sin[e + f*x]])

Rule 2738

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[
(-2*b*Cos[e + f*x]*(c + d*Sin[e + f*x])^n)/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]]), x] /; FreeQ[{a, b, c, d, e,
 f, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]

Rule 2841

Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_) + (d_.)*sin[(e_.) + (f_.)*
(x_)])^(n_.), x_Symbol] :> Dist[1/(a^(p/2)*c^(p/2)), Int[(a + b*Sin[e + f*x])^(m + p/2)*(c + d*Sin[e + f*x])^(
n + p/2), x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[p
/2]

Rubi steps

\begin {align*} \int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^{5/2}}{\sqrt {c-c \sin (e+f x)}} \, dx &=\frac {\int (a+a \sin (e+f x))^{7/2} \sqrt {c-c \sin (e+f x)} \, dx}{a c}\\ &=\frac {\cos (e+f x) (a+a \sin (e+f x))^{7/2}}{4 a f \sqrt {c-c \sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.92, size = 119, normalized size = 2.64 \[ \frac {(a (\sin (e+f x)+1))^{5/2} \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (56 \sin (e+f x)-8 \sin (3 (e+f x))-28 \cos (2 (e+f x))+\cos (4 (e+f x)))}{32 f \sqrt {c-c \sin (e+f x)} \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^5} \]

Antiderivative was successfully verified.

[In]

Integrate[(Cos[e + f*x]^2*(a + a*Sin[e + f*x])^(5/2))/Sqrt[c - c*Sin[e + f*x]],x]

[Out]

((Cos[(e + f*x)/2] - Sin[(e + f*x)/2])*(a*(1 + Sin[e + f*x]))^(5/2)*(-28*Cos[2*(e + f*x)] + Cos[4*(e + f*x)] +
 56*Sin[e + f*x] - 8*Sin[3*(e + f*x)]))/(32*f*(Cos[(e + f*x)/2] + Sin[(e + f*x)/2])^5*Sqrt[c - c*Sin[e + f*x]]
)

________________________________________________________________________________________

fricas [B]  time = 0.47, size = 98, normalized size = 2.18 \[ \frac {{\left (a^{2} \cos \left (f x + e\right )^{4} - 8 \, a^{2} \cos \left (f x + e\right )^{2} + 7 \, a^{2} - 4 \, {\left (a^{2} \cos \left (f x + e\right )^{2} - 2 \, a^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{4 \, c f \cos \left (f x + e\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^2*(a+a*sin(f*x+e))^(5/2)/(c-c*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

1/4*(a^2*cos(f*x + e)^4 - 8*a^2*cos(f*x + e)^2 + 7*a^2 - 4*(a^2*cos(f*x + e)^2 - 2*a^2)*sin(f*x + e))*sqrt(a*s
in(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)/(c*f*cos(f*x + e))

________________________________________________________________________________________

giac [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^2*(a+a*sin(f*x+e))^(5/2)/(c-c*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

Timed out

________________________________________________________________________________________

maple [B]  time = 0.36, size = 199, normalized size = 4.42 \[ \frac {\sin \left (f x +e \right ) \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {5}{2}} \left (\sin \left (f x +e \right ) \left (\cos ^{3}\left (f x +e \right )\right )-\left (\cos ^{4}\left (f x +e \right )\right )+3 \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )+4 \left (\cos ^{3}\left (f x +e \right )\right )-7 \sin \left (f x +e \right ) \cos \left (f x +e \right )+4 \left (\cos ^{2}\left (f x +e \right )\right )-\sin \left (f x +e \right )-8 \cos \left (f x +e \right )+1\right )}{4 f \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}\, \left (\left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-\left (\cos ^{3}\left (f x +e \right )\right )+2 \sin \left (f x +e \right ) \cos \left (f x +e \right )+3 \left (\cos ^{2}\left (f x +e \right )\right )-4 \sin \left (f x +e \right )+2 \cos \left (f x +e \right )-4\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(f*x+e)^2*(a+a*sin(f*x+e))^(5/2)/(c-c*sin(f*x+e))^(1/2),x)

[Out]

1/4/f*sin(f*x+e)*(a*(1+sin(f*x+e)))^(5/2)*(sin(f*x+e)*cos(f*x+e)^3-cos(f*x+e)^4+3*cos(f*x+e)^2*sin(f*x+e)+4*co
s(f*x+e)^3-7*sin(f*x+e)*cos(f*x+e)+4*cos(f*x+e)^2-sin(f*x+e)-8*cos(f*x+e)+1)/(-c*(sin(f*x+e)-1))^(1/2)/(cos(f*
x+e)^2*sin(f*x+e)-cos(f*x+e)^3+2*sin(f*x+e)*cos(f*x+e)+3*cos(f*x+e)^2-4*sin(f*x+e)+2*cos(f*x+e)-4)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {5}{2}} \cos \left (f x + e\right )^{2}}{\sqrt {-c \sin \left (f x + e\right ) + c}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^2*(a+a*sin(f*x+e))^(5/2)/(c-c*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^(5/2)*cos(f*x + e)^2/sqrt(-c*sin(f*x + e) + c), x)

________________________________________________________________________________________

mupad [B]  time = 1.88, size = 102, normalized size = 2.27 \[ -\frac {a^2\,\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (28\,\cos \left (e+f\,x\right )+27\,\cos \left (3\,e+3\,f\,x\right )-\cos \left (5\,e+5\,f\,x\right )-48\,\sin \left (2\,e+2\,f\,x\right )+8\,\sin \left (4\,e+4\,f\,x\right )\right )}{32\,c\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((cos(e + f*x)^2*(a + a*sin(e + f*x))^(5/2))/(c - c*sin(e + f*x))^(1/2),x)

[Out]

-(a^2*(a*(sin(e + f*x) + 1))^(1/2)*(-c*(sin(e + f*x) - 1))^(1/2)*(28*cos(e + f*x) + 27*cos(3*e + 3*f*x) - cos(
5*e + 5*f*x) - 48*sin(2*e + 2*f*x) + 8*sin(4*e + 4*f*x)))/(32*c*f*(cos(2*e + 2*f*x) + 1))

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)**2*(a+a*sin(f*x+e))**(5/2)/(c-c*sin(f*x+e))**(1/2),x)

[Out]

Timed out

________________________________________________________________________________________